import service from "../../server/request";
import axios from "axios";

// 1:省 2:市 3:区
export function getPlaceByLevel(data: any) {
  return service({
    url: "/places/level",
    method: "get",
    params: data,
  });
}

export function getPlaceByParentId(data: any) {
  return service({
    url: "/places/below",
    method: "get",
    params: data,
  });
}

export function getPlaceByJSON() {
  return axios.get('/src/api/object/PlaceList.json');
}